package com.zeny.express.module.mdm.user.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zeny.express.data.mdm.entity.UserEntity;
import com.zeny.express.framework.shared.domain.User;
import com.zeny.express.framework.webapp.service.WebApplicationManager;
import com.zeny.express.module.mdm.user.dao.UserEntityDao;

@Service
public class WebApplicationManagerImpl implements WebApplicationManager {

	@Autowired
	private UserEntityDao userEntityDao;

	@Override
	public User getUserByCode(String code) {

//		return userEntityDao.getUserByLoginCode(code);
		
		UserEntity user = new UserEntity();
		user.setLoginCode("test");
		user.setName("测试");
		return user;
	}

}
